const {con,Result} = require('./common');

let getVedioUrl = async(id)=>{
    let res = new Result();
    let sql = `select * from Iteminfo  where id = '${id}'`;
    let [rows] = await con.execute(sql);
    if(rows.length === 0){
        res.code = 40103;
        res.msg = 'animation not exist';
    }else{
        res.data = rows;
    }
    return res;
}
module.exports = {getVedioUrl};
